<?
    class Principio_Comparator_TypeInCompany implements PrincipioLab_IComparator
    {
        public function compare($obj1, $obj2)
        {
            $company_compare = PrincipioLab_Comparator_IDAbleSingleton::getInstance()->compare($obj1->getModelCompany(), $obj2->getModelCompany());

            return ($company_compare == self::IS_EQ
                ? PrincipioLab_Comparator_IDAbleSingleton::getInstance()->compare($obj1->getModelType(), $obj2->getModelType())
                : $company_compare
                );
        }
    }
?>